package com.fitz.enums;

import com.fitz.cluster.AbstractClusterStrategy;
import com.fitz.cluster.FailFastStrategy;
import com.fitz.cluster.FailoverStrategy;

public enum ClusterStrategy {

    /**
     * 快速失败
     */
    FAIL_FAST(new FailFastStrategy()),
    FAILOVER(new FailoverStrategy()),
    ;

    public AbstractClusterStrategy clusterStrategy;

    ClusterStrategy(AbstractClusterStrategy clusterStrategy){
        this.clusterStrategy = clusterStrategy;
    }
}
